package sunyu.demo.exec.shell;

import org.junit.Test;
import sunyu.toolkit.core.DiskKit;
import sunyu.toolkit.core.ShellKit;

/**
 * 执行bat脚本
 *
 * @author 孙宇
 */
public class ExecuteBat {

    @Test
    public void t1() {
        System.out.println(ShellKit.exec(new String[]{DiskKit.absolute("1.bat"), "arg1", "arg2"}));
    }

}
